syntax on

" Options:
set ambiwidth=double
set acd
set backupdir=$TEMP
set background=dark
set cmdheight=3
set conceallevel=1
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,gb18030,euc-jp
set fdm=indent
" set guifontwide=SimHei
set guifontwide=JetBrainsMono_NFM:h14:cANSI:qDRAFT
set guifont=Inziu_Iosevka_SC:h14:cANSI:qDRAFT
function! GuiTabLabel()
	let label = ''
	let bufnrlist = tabpagebuflist(v:lnum)
	" 如果标签页里有修改过的缓冲区，加上 '+'
	for bufnr in bufnrlist
		if getbufvar(bufnr, "&modified")
			let label = '+'
			break
		endif
	endfor
	" 如果标签页里的窗口数目多于一，加上窗口数目
	let wincount = tabpagewinnr(v:lnum, '$')
	if wincount > 1
		let label ..= wincount
	endif
	if label != ''
		let label ..= ' '
	endif
	" 附加缓冲区名
	return label .. bufname(bufnrlist[tabpagewinnr(v:lnum) - 1])
endfunction
set guitablabel=%{GuiTabLabel()}
" set guioptions-=m
" set guioptions-=T
set guioptions=egrL
set hidden
set iminsert=0
set number
set noundofile
set nobackup
set noswapfile
if !has('python3')
	set pythonthreedll=C:\Programs\scoop\apps\python\3.12.0\python3.dll
endif
" set rnu
set relativenumber
set shiftwidth=4
set smartindent
if exists('&smoothscroll')
	set smoothscroll
endif
set tabstop=4
set termencoding=utf-8
set visualbell
set viminfofile=~\.viminfo
set viminfo='100,<50,s10,h,rA:,rB:,n~/.viminfo

